<%-- 
    Document   : batchClassify
    Created on : Mar 2, 2012, 12:03:09 AM
    Author     : xjuraj
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<s:layout-render name="/WEB-INF/pages/layout.jsp">
    <s:layout-component name="head">

    </s:layout-component>
    <s:layout-component name="title">
        <f:message key="page.export.title"/>
    </s:layout-component>
    <s:layout-component name="afterTitle">

    </s:layout-component>
    <s:layout-component name="content">

        <s:form  acceptcharset="UTF-8" method="GET" 
                 beanclass="sk.lieskove.jianghongtiao.paris.webclient.web.BatchClassificationActionBean">
            <h2><f:message key="page.batch.selectLang"/></h2>
            <div class="langList">
                <c:forEach var="lang" items="${langList}">
                    <s:radio id="lng_rb_${lang}" name="language" value="${lang}"/>
                    <s:label for="lng_rb_${lang}" id="lng_lbl_${lang}" >
                        <f:message key="sk.lieskove.jianghongtiao.websearch.document.preprocessing.${lang}"/>
                    </s:label>
                    <br/>
                </c:forEach>
            </div>
            
            
            <h2><f:message key="page.batch.trainingset"/></h2>
            <h3><f:message key="page.batch.trainingsetclasses"/></h3>
            <s:select name="trainDocTypes" multiple="">
                <s:options-enumeration  
                    enum="sk.lieskove.jianghongtiao.paris.core.classification.document.enums.DocumentType"/>
            </s:select>
            <h3><f:message key="page.batch.joinClasses"/></h3>
            <s:text name="joinTrainClasses" value="informatics,manager,info_manager">informatics,manager,info_manager</s:text>
            <f:message key="page.batch.joinClasses.help"/>
            <br/>
            
            
            <h2><f:message key="page.batch.testingset"/></h2> (<f:message key="page.batch.notUsedTesting"/>)
            <h3><f:message key="page.batch.testingsetclasses"/></h3>
            <s:select name="testDocTypes" multiple="">
                <s:options-enumeration  
                    enum="sk.lieskove.jianghongtiao.paris.core.classification.document.enums.DocumentType"/>
            </s:select>
            <h3><f:message key="page.batch.joinClasses"/></h3>
            <s:text name="joinTestClasses" value="informatics,manager,info_manager">informatics,manager,info_manager</s:text>
            <f:message key="page.batch.joinClasses.help"/>
            <br/>
            
            
            <h2><f:message key="page.batch.baseline"/></h2>
            <s:text name="baseline"  value="60">60</s:text> (1...99) default: 60
            <br/>
            
            <h2><f:message key="page.batch.wordsToKeep"/></h2>
            <s:text name="wordsToKeep" value="200">200</s:text> (1...9999) default: 200
            <br/>
            
            <h2><f:message key="page.batch.repeatCount"/></h2>
            <s:text name="repeat" value="20">20</s:text> (1...1000) default: 20
            <br/>
            
            <h2><f:message key="page.batch.classifiers"/></h2>
                <c:forEach var="cls" items="${classifierList}">
                    <s:checkbox id="cls_cb_${cls}" name="classifiers" value="${cls}"
                                checked="true"/>
                    <s:label for="cls_cb_${cls}" id="cls_lbl_${cls}" >
                        <c:out value="${cls}"/>
                    </s:label>
                    <br/>
                </c:forEach>
            
            <s:submit name="process"><f:message key="page.batch.process"/></s:submit>
        </s:form>
    </s:layout-component>
    <s:layout-component name="sidebar">

    </s:layout-component>
</s:layout-render>